core: Avoid checksumming hardlinks that point into repository
authorColin Walters <walters@verbum.org>
Fri, 4 May 2012 19:38:21 +0000 (15:38 -0400)
committerColin Walters <walters@verbum.org>
Fri, 4 May 2012 20:10:30 +0000 (16:10 -0400)
commitac38a7e1b18ead1801107601495436367f7f4df9
tree358cfba75b32cd3eaeee056ab348c77a63590871
parent0fc291b954551f028bfb3bf7dc17931e2f180f67
core: Avoid checksumming hardlinks that point into repository

By default, when doing a commit, scan all of our loose objects and
build up a (device,inode) -> checksum hash.  Then when we're doing a
commit, if we see a file with that (device,inode) pair, we can avoid
checksumming it.
src/libostree/ostree-repo.c